<div class="fm-content">
	<!-- 最上面标题栏 -->
	<div class="title">
		<i nz-icon [type]="'desktop'"></i>
		&nbsp;&nbsp;货物安全检查
	</div>
	<!-- 内容 -->
	<div class="work">

		<!-- 查询框 -->
		<div class="top">
			<!-- first-input -->
			<nz-select class="fm-input first-input" (nzOpenChange)="airportDic.load('0')"
				[(ngModel)]="fs.queryObject['airport:=']" [nzPlaceHolder]="'所属机场'">
				<nz-option *ngFor="let option of airportDic.datas" [nzLabel]="option.display" [nzValue]="option.id">
				</nz-option>
				<nz-option *ngIf="airportDic.isLoading" nzDisabled nzCustomContent>
					<i nz-icon type="loading" class="loading-icon"></i>加载中...
				</nz-option>
			</nz-select>
			<nz-button-group>
				<button nz-button nzType="primary" (click)="fs.loadData(true)">查询</button>
				<button nz-button (click)="fs.resetQueryObject() && fs.loadData(true)">重置</button>
			</nz-button-group>
			<div class="tool-right">
				<nz-button-group>
					<button *ngIf="ss.mi.sa || ss.mi.hwaqjcxz" nz-button [nzType]="'primary'" (click)="editRow(null)">新增</button>
					<!-- <button nz-button (click)="fs.editRow()">编辑</button> -->
					<button *ngIf="ss.mi.sa || ss.mi.hwaqjcsc" nz-popconfirm nzTitle="确认删除选择项?" (nzOnConfirm)="fs.delEntitys()" nzPlacement="bottomRight"
						nz-button>删除</button>
          <a nz-button href="assets/images/运输安全检查.xls" download="运输安全检查.xls">模板下载</a>
          <button nz-button (click)="fs.export('xjmh_ysaq.html', '运输安全检查.xls')">导出</button>
          <nz-upload nzAction="{{ fs.getExcelUploadUrl() }}" [nzLimit]="1" [nzHeaders]="ffs.fileHeaders"
                     [nzFilter]="fs.excelFilters" [nzAccept]="'.xls,.xlsx'" (nzChange)="excelHandleChange($event)">
            <button *ngIf="ss.mi.sa || ss.mi.hwaqjcxz" nz-button>导入</button>
          </nz-upload>
				</nz-button-group>
			</div>
		</div>

		<!-- 右则样表单主体 -->
		<div class="work-content">
			<div class="table">
				<nz-table nzSize="middle" nzBordered nzShowSizeChanger [nzPageSizeOptions]='[ 10, 15, 20, 30, 40, 50 ]'
					[nzFrontPagination]="false" [nzData]="fs.datas" [nzLoading]="fs.isLoading || fs.isDeleing"
					[nzTotal]="fs.rowsCount" [(nzPageIndex)]="fs.pageIndex" [(nzPageSize)]="fs.pageSize"
					(nzPageIndexChange)="fs.loadData()" (nzPageSizeChange)="fs.loadData(true)"
					[nzWidthConfig]="['50px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px','100px']"
					[nzScroll]="{x: '3200px' }">
					<thead>
						<tr>
							<th rowspan="4" nzShowCheckbox [(nzChecked)]="fs.allChecked" [nzIndeterminate]="fs.indeterminate"
								(nzCheckedChange)="fs.checkAll($event)"></th>
							<th rowspan="4" [nzAlign]="'center'">所属机场</th>
							<th colspan="10">航空货物检查</th>
							<th colspan="10">航空邮件快件</th>
							<th colspan="6">处理措施</th>
						</tr>
						<tr>
							<th>共计</th>
							<th colspan="9">其中查获</th>
							<th>共计</th>
							<th colspan="9">其中查获</th>
							<th>共计</th>
							<th colspan="5">其中查获</th>
						</tr>
						<tr>
							<th rowspan="2">检查件数</th>
							<th rowspan="2">枪支（含仿真枪）</th>
							<th rowspan="2">弹药</th>
							<th rowspan="2">军械、警械</th>
							<th rowspan="2">爆破器材</th>
							<th rowspan="2">管制刀具</th>
							<th rowspan="2">易燃易爆物品</th>
							<th rowspan="2">毒品</th>
							<th rowspan="2">其他违禁品或危险品</th>
							<th rowspan="2">小计</th>
							<th rowspan="2">检查件数</th>
							<th rowspan="2">枪支（含仿真枪）</th>
							<th rowspan="2">弹药</th>
							<th rowspan="2">军械、警械</th>
							<th rowspan="2">爆破器材</th>
							<th rowspan="2">管制刀具</th>
							<th rowspan="2">易燃易爆物品</th>
							<th rowspan="2">毒品</th>
							<th rowspan="2">其他违禁品或危险品</th>
							<th rowspan="2">小计</th>
							<th rowspan="2">处理件数</th>
							<th rowspan="2">退运</th>
							<th colspan="3">移交机场公安</th>
							<th rowspan="2">移交其他部门</th>
						</tr>
						<tr>
							<th>伪报品名</th>
							<th>伪造、变革证明文件</th>
							<th>其他</th>
						</tr>
					</thead>
					<tbody>
						<tr *ngFor="let data of fs.datas">
							<td nzShowCheckbox [(nzChecked)]="data.checked" (nzCheckedChange)="fs.refreshCheckStatus()">
							</td>
							<!-- <td><span (click)="fs.editRow(data)" class="form-edit"></span></td> -->
							<td [nzAlign]="'center'"><span (click)="editRow(data)" class="form-edit">{{data.airportName}}</span></td>
							<td>{{data.gcheckcount}}</td>
							<td>{{data.gguns}}</td>
							<td>{{data.gbullet}}</td>
							<td>{{data.gpoliceequipment}}</td>
							<td>{{data.gboomequipment}}</td>
							<td>{{data.gcontrolknife}}</td>
							<td>{{data.gdanger}}</td>
							<td>{{data.gdrugs}}</td>
							<td>{{data.gother}}</td>
							<td>{{data.gtotal}}</td>
							<td>{{data.pcheckcount}}</td>
							<td>{{data.pguns}}</td>
							<td>{{data.pbullet}}</td>
							<td>{{data.ppoliceequipment}}</td>
							<td>{{data.pboomequipment}}</td>
							<td>{{data.pcontrolknife}}</td>
							<td>{{data.pdanger}}</td>
							<td>{{data.pdrugs}}</td>
							<td>{{data.pother}}</td>
							<td>{{data.ptotal}}</td>
							<td>{{data.hhandlecount}}</td>
							<td>{{data.hreturn}}</td>
							<td>{{data.hfakename}}</td>
							<td>{{data.hfakefile}}</td>
							<td>{{data.hfakeother}}</td>
							<td>{{data.htransferother}}</td>
						</tr>
					</tbody>
				</nz-table>
			</div>
		</div>

	</div>
</div>
